package com.xmy.erp.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author hpiggy
 * @since 2023-09-09
 */
@TableName("permission_api")
@ApiModel(value = "PermissionApi对象", description = "")
public class PermissionApi implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    @ApiModelProperty("链接")
    private String apiUrl;

    @ApiModelProperty("请求类型")
    private String apiMethod;

    @ApiModelProperty("权限等级，1为通用接口权限，2为需校验接口权限")
    private Integer apiLevel;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public String getApiUrl() {
        return apiUrl;
    }

    public void setApiUrl(String apiUrl) {
        this.apiUrl = apiUrl;
    }
    public String getApiMethod() {
        return apiMethod;
    }

    public void setApiMethod(String apiMethod) {
        this.apiMethod = apiMethod;
    }
    public Integer getApiLevel() {
        return apiLevel;
    }

    public void setApiLevel(Integer apiLevel) {
        this.apiLevel = apiLevel;
    }

    @Override
    public String toString() {
        return "PermissionApi{" +
            "id=" + id +
            ", apiUrl=" + apiUrl +
            ", apiMethod=" + apiMethod +
            ", apiLevel=" + apiLevel +
        "}";
    }
}
